package com.xr.common.redis;

import java.time.LocalDateTime;

public class RedisData {

    // 原数据对象
    private Object data;

    // 逻辑过期时间
    private LocalDateTime expiration;

    public RedisData() {
    }

    public RedisData(Object data, LocalDateTime expiration) {
        this.data = data;
        this.expiration = expiration;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public LocalDateTime getExpiration() {
        return expiration;
    }

    public void setExpiration(LocalDateTime expiration) {
        this.expiration = expiration;
    }

}
